package org.xq.shop.maxaishop.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.xq.shop.maxaishop.entity.XqCommodity;

@FeignClient(value = "maxai-store")
public interface XqCommodityFeign {

    @GetMapping("/xqCommodity/queryById")
    XqCommodity queryById(@RequestParam("cid") Integer cid);

    @PostMapping("/xqCommodity/updateSales")
    int updateSales(@RequestParam("sales") int sales,@RequestParam("stork") int stork,@RequestParam("cid") int cid);
}
